﻿package com.toncen.samepms.basic.domain;

import com.toncen.samepms.common.AbstractDomain;
import com.sky.dataimport.DynamicCellDataCell;
import com.sky.dataimport.DynamicCellDataRow;
import com.sky.dataimport.DynamicRowDataCell;
import com.sky.dataimport.DynamicRowDataRow;
import com.sky.dataimport.StaticDataCell;
import com.sky.dataimport.StaticDataRow;
import com.sky.dataimport.datatype.IntegerDataType;
 
/**
 * 描述：组织类型表BASIC_ORGANIZATION_TYPE的domain文件
 * 
 * @author tch 
 */
@DynamicRowDataRow(title = "动态行组织类型", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列组织类型", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列组织类型", sheetIndex = 1)
public class OrganizationType extends AbstractDomain {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1344241624046L;
	
	/**
	 * 组织
	 */ 
	@StaticDataCell(rowIndex = 1, cellIndex = 1, title = "组织")
	private  com.toncen.samepms.basic.domain.Organization organization; 	 
    
	/**
	 * 单位类型
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "单位类型")
	@DynamicRowDataCell(cellIndex = 2,  title = "单位类型", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "单位类型", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  int type; 	 
    

	public OrganizationType() {
		super();
	}

	/**
	 * @return the  organization
	 */
	public  com.toncen.samepms.basic.domain.Organization getOrganization() {
		return  organization;
	}

	/**
	 * @param  organization
	 *            the  organization to set
	 */
	public void setOrganization( com.toncen.samepms.basic.domain.Organization  organization) {
		this. organization =  organization;
	}
	
	/**
	 * @return the  type
	 */
	public  int getType() {
		return  type;
	}

	/**
	 * @param  type
	 *            the  type to set
	 */
	public void setType( int  type) {
		this. type =  type;
	}
	
}
